package xd.ylwy.precourse.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;
import xd.ylwy.precourse.entity.TbRecommendCourse;
import xd.ylwy.precourse.service.impl.TbRecommendCourseServiceImpl;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xd
 * @since 2022-09-23
 */
@Controller
@RequestMapping("/tbRecommendCourse")
public class TbRecommendCourseController {
    @Autowired
    private TbRecommendCourseServiceImpl tbRecommendCourseService;

    @PostMapping ("/list")
    @ResponseBody
    public List<TbRecommendCourse> list(@RequestParam String id) {
        return tbRecommendCourseService.list(id);
    }


}

